﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EventArgsExe
{
    public class Counter
    {
        private int num;
        private int ber;

        public Counter(int Num, int Ber)
        {
            num = Num;
            ber = Ber;
        }
        public void Add(int x)
        {
            ber += x;
            if (ber >= num)
            {
                MyEventArgs arg = new MyEventArgs();
                arg.Num = num;

            }
        }
    }

}
